import { Route, Switch, Redirect } from "react-router-dom";
import Info from "../pages/UserPages/Info";
import List from "../pages/UserPages/List";
const UserRouter = ()=> {
  return (
    <Switch>
      <Route exact path="/user">
        <Redirect to="/user/info?title=个人信息"></Redirect>
      </Route>
      <Route path="/user/info" component={Info}></Route>
      <Route path="/user/list" component={List}></Route>
    </Switch>
  )
};

export default UserRouter;